package com.eshop.modules.user.service.dto;

import java.io.Serializable;

public class UserSmallDto implements Serializable {
    private String avatar;
    private String nickname;
    private String phone;
    private Integer uid;

    /* access modifiers changed from: protected */
    public boolean canEqual(Object other) {
        return other instanceof UserSmallDto;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof UserSmallDto)) {
            return false;
        }
        UserSmallDto other = (UserSmallDto) o;
        if (!other.canEqual(this)) {
            return false;
        }
        Integer this$uid = getUid();
        Integer other$uid = other.getUid();
        if (this$uid != null ? !this$uid.equals(other$uid) : other$uid != null) {
            return false;
        }
        String this$nickname = getNickname();
        String other$nickname = other.getNickname();
        if (this$nickname != null ? !this$nickname.equals(other$nickname) : other$nickname != null) {
            return false;
        }
        String this$avatar = getAvatar();
        String other$avatar = other.getAvatar();
        if (this$avatar != null ? !this$avatar.equals(other$avatar) : other$avatar != null) {
            return false;
        }
        String this$phone = getPhone();
        String other$phone = other.getPhone();
        if (this$phone == null) {
            if (other$phone == null) {
                return true;
            }
        } else if (this$phone.equals(other$phone)) {
            return true;
        }
        return false;
    }

    public int hashCode() {
        int i = 43;
        Integer $uid = getUid();
        int hashCode = $uid == null ? 43 : $uid.hashCode();
        String $nickname = getNickname();
        int i2 = (hashCode + 59) * 59;
        int hashCode2 = $nickname == null ? 43 : $nickname.hashCode();
        String $avatar = getAvatar();
        int i3 = (i2 + hashCode2) * 59;
        int hashCode3 = $avatar == null ? 43 : $avatar.hashCode();
        String $phone = getPhone();
        int i4 = (i3 + hashCode3) * 59;
        if ($phone != null) {
            i = $phone.hashCode();
        }
        return i4 + i;
    }

    public void setAvatar(String avatar2) {
        this.avatar = avatar2;
    }

    public void setNickname(String nickname2) {
        this.nickname = nickname2;
    }

    public void setPhone(String phone2) {
        this.phone = phone2;
    }

    public void setUid(Integer uid2) {
        this.uid = uid2;
    }

    public String toString() {
        return "UserSmallDto(uid=" + getUid() + ", nickname=" + getNickname() + ", avatar=" + getAvatar() + ", phone=" + getPhone() + ")";
    }

    public Integer getUid() {
        return this.uid;
    }

    public String getNickname() {
        return this.nickname;
    }

    public String getAvatar() {
        return this.avatar;
    }

    public String getPhone() {
        return this.phone;
    }
}
